package com.zygame.sdk.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ZY_Toolbar  implements Parcelable{
	public String name;
	public String action;
	public String src;
	public String url;
	public  String hide;
	public String data ;
	public int ids =-1;




	public ZY_Toolbar(String name, String action, String src, String url, String hide) {
		this.name = name;
		this.action = action;
		this.src = src ;
		this.url = url;
		this.hide = hide;

	}


	public ZY_Toolbar(String url,String data,int ids) {
		this.data = data;
		this.url = url;
		this.ids = ids;

	}

	protected ZY_Toolbar(Parcel parcel) {
		name = parcel.readString();
		action = parcel.readString();
		src = parcel.readString();
		url = parcel.readString();
		hide = parcel.readString();
		data = parcel.readString();
		ids = parcel.readInt();
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeString(action);
		dest.writeString(src);
		dest.writeString(url);
		dest.writeString(hide);
		dest.writeString(data);
		dest.writeInt(ids);

	}
	@Override
	public int describeContents() {
		return 0;
	}
	public static final Creator<ZY_Toolbar> CREATOR = new Creator<ZY_Toolbar>() {
		@Override
		public ZY_Toolbar createFromParcel(Parcel in) {
			return new ZY_Toolbar(in);
		}

		@Override
		public ZY_Toolbar[] newArray(int size) {
			return new ZY_Toolbar[size];
		}
	};
}
